<!DOCTYPE html>



  


<html class="theme-next pisces use-motion" lang="zh-Hans">
<head><meta name="generator" content="Hexo 3.8.0">
  <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css">







<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css">

<link href="/css/main.css?v=5.1.4" rel="stylesheet" type="text/css">


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="Hexo, NexT">










<meta name="description" content="第2章 Spring Boot 基础配置 本学习笔记来自《Spring Boot+Vue全栈开发实战》 王松著  Properties配置Spring Boot 项目中的application.properties配置文件一共可以出现如下4个位置：  项目根目录下的config文件夹中。 项目根目录下。 classpath下的config文件夹中。 classpath下。  类型安全配置属性 Sp">
<meta property="og:type" content="article">
<meta property="og:title" content="Spring Boot - 第二章 - Properties等其他配置文件">
<meta property="og:url" content="https://mingmingv.gitee.io/2019/04/14/Spring-Boot-第二章-Properties等其他配置文件/index.html">
<meta property="og:site_name" content="四 季">
<meta property="og:description" content="第2章 Spring Boot 基础配置 本学习笔记来自《Spring Boot+Vue全栈开发实战》 王松著  Properties配置Spring Boot 项目中的application.properties配置文件一共可以出现如下4个位置：  项目根目录下的config文件夹中。 项目根目录下。 classpath下的config文件夹中。 classpath下。  类型安全配置属性 Sp">
<meta property="og:locale" content="zh-Hans">
<meta property="og:updated_time" content="2019-04-14T09:35:49.911Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Spring Boot - 第二章 - Properties等其他配置文件">
<meta name="twitter:description" content="第2章 Spring Boot 基础配置 本学习笔记来自《Spring Boot+Vue全栈开发实战》 王松著  Properties配置Spring Boot 项目中的application.properties配置文件一共可以出现如下4个位置：  项目根目录下的config文件夹中。 项目根目录下。 classpath下的config文件夹中。 classpath下。  类型安全配置属性 Sp">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Pisces',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://mingmingv.gitee.io/2019/04/14/Spring-Boot-第二章-Properties等其他配置文件/">





  <title>Spring Boot - 第二章 - Properties等其他配置文件 | 四 季</title>
  








</head>

<body itemscope="" itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope="" itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">四 季</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br>
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br>
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br>
            
            标签
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope="" itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://mingmingv.gitee.io/2019/04/14/Spring-Boot-第二章-Properties等其他配置文件/">

    <span hidden itemprop="author" itemscope="" itemtype="http://schema.org/Person">
      <meta itemprop="name" content="四 季">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope="" itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="四 季">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">Spring Boot - 第二章 - Properties等其他配置文件</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2019-04-14T15:49:36+08:00">
                2019-04-14
              </time>
            

            

            
          </span>

          

          
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <h1 id="第2章-Spring-Boot-基础配置"><a href="#第2章-Spring-Boot-基础配置" class="headerlink" title="第2章 Spring Boot 基础配置"></a>第2章 Spring Boot 基础配置</h1><blockquote>
<p>本学习笔记来自《Spring Boot+Vue全栈开发实战》 王松著</p>
</blockquote>
<h2 id="Properties配置"><a href="#Properties配置" class="headerlink" title="Properties配置"></a>Properties配置</h2><p><code>Spring Boot 项目中的application.properties配置文件一共可以出现如下4个位置：</code></p>
<ul>
<li>项目根目录下的config文件夹中。</li>
<li>项目根目录下。</li>
<li>classpath下的config文件夹中。</li>
<li>classpath下。</li>
</ul>
<h2 id="类型安全配置属性"><a href="#类型安全配置属性" class="headerlink" title="类型安全配置属性"></a>类型安全配置属性</h2><blockquote>
<p>Spring提供了@Value注解以及EnvironmentAware接口来将Spring Environment中的数据源注入到属性上，Spring Boot对此进一步提出了类型安全配置属性，这样即使在数据量非常庞大的情况下，也可以更加方便得将配置我呢家那种的数据注入到Bean中。考虑在application.properties中添加如下一段配置：</p>
</blockquote>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">book.name=三国演义</span><br><span class="line">book.author=罗贯中</span><br><span class="line">book.price=30</span><br></pre></td></tr></table></figure>
<blockquote>
<p>将这一端配置数据注入如下Bean中：</p>
</blockquote>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">@Component</span><br><span class="line">@ConfigurationProperties(prefix=<span class="string">"book"</span>)</span><br><span class="line">public class Book&#123;</span><br><span class="line">    private String name;</span><br><span class="line">    private String author;</span><br><span class="line">    private Float price;</span><br><span class="line">    // 省略getter/setter</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<h3 id="代码解释："><a href="#代码解释：" class="headerlink" title="代码解释："></a>代码解释：</h3><ul>
<li><strong>@ConfigurationProperties</strong>：在prefix熟悉描述了要加载的配置文件的前缀。</li>
<li>如果配置文件是一个YAML文件，那么可以将数据注入一个集合中。</li>
<li>Spring Boot采用了一种宽松的规则来进行属性绑定。</li>
</ul>
<blockquote>
<p>最后创建BookController进行简单测试：</p>
</blockquote>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">@RestController</span><br><span class="line">public class BookController&#123;</span><br><span class="line">    @Autowired</span><br><span class="line">    Book book;</span><br><span class="line">    @GetMapping(<span class="string">"/book"</span>)</span><br><span class="line">    public String <span class="function"><span class="title">book</span></span>()&#123;</span><br><span class="line">        <span class="built_in">return</span> book.toString();</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<h2 id="YAML-配置"><a href="#YAML-配置" class="headerlink" title="YAML 配置"></a>YAML 配置</h2><ul>
<li>常规配置</li>
</ul>
<ol>
<li>YAML是JSON的超级，简洁而强大，是一个专门用来书写配置文件的语言，可以替代application.properties。</li>
<li>YAML的使用非常简答，利用缩进来表示层级关系，并且大小写敏感。</li>
<li>在Spring Boot 项目中使用YAML只需要在resources目录下创建一个application.yml文件即可.</li>
</ol>
<blockquote>
<p>然后向文件中添加如下配置：</p>
</blockquote>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">server:</span><br><span class="line">    port:80</span><br><span class="line">    servlet:</span><br><span class="line">        context-path: /chapter02</span><br><span class="line">    tomcat:</span><br><span class="line">        uri-encoding:utf-8</span><br></pre></td></tr></table></figure>
<p><code>需要先将application.properties文件删除，才能完全使用YAML完成文件的配置。</code></p>
<ul>
<li>复杂配置</li>
</ul>
<blockquote>
<p>YAML不仅可以配置常规属性，也可以配置复杂属性，例如下面一组配置：</p>
</blockquote>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">my:</span><br><span class="line">    name:hello</span><br><span class="line">    address：China</span><br></pre></td></tr></table></figure>
<p><strong>像Properties配置文件一样，这一段配置也可以注入一个Bean中，代码如下</strong>：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">@Component</span><br><span class="line">@ConfigurationProperties(prefix=<span class="string">"my"</span>)</span><br><span class="line">public class User&#123;</span><br><span class="line">    private String name;</span><br><span class="line">    private String address;</span><br><span class="line">    // 省略getter/setter</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<p><strong>YAML还支持列表的配置，例如下面一组配置</strong>：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">my：</span><br><span class="line">    name:hello</span><br><span class="line">    address:China</span><br><span class="line">    favorites:</span><br><span class="line">        - 足球</span><br><span class="line">        - 徒步</span><br><span class="line">        - Coding</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<p><strong>这一组配置可以注入如下Bean中</strong>:</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">@Component</span><br><span class="line">@ConfigurationProperties(prefix=<span class="string">"my"</span>)</span><br><span class="line">public class User&#123;</span><br><span class="line">    private String name;</span><br><span class="line">    private String address;</span><br><span class="line">    private List&lt;String&gt; favorites;</span><br><span class="line">    // 省略getter/setter</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<p><strong>YAML还支持更复杂的配置，即集合中也可以是一个对象，例如下面一组配置</strong>：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line">my：</span><br><span class="line">    users:</span><br><span class="line">        - name :hello</span><br><span class="line">        address:China</span><br><span class="line">        favorites:</span><br><span class="line">            - 足球</span><br><span class="line">            - 徒步</span><br><span class="line">            - Coding</span><br><span class="line">        -name： sang</span><br><span class="line">        address：GZ</span><br><span class="line">        favorites：</span><br><span class="line">            - 阅读</span><br><span class="line">            - 其他</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<p><strong>这组配置在集合中放的是一个对象，因此可以注入如下集合中</strong>：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line">@Component</span><br><span class="line">@ConfigurationProperties(prefix=<span class="string">"my"</span>)</span><br><span class="line">public class Users&#123;</span><br><span class="line">    private List&lt;User&gt; users;</span><br><span class="line">    // 省略getter/setter</span><br><span class="line">&#125;</span><br><span class="line">public class User&#123;</span><br><span class="line">    private String name;</span><br><span class="line">    private String address;</span><br><span class="line">    private List&lt;String&gt; favorites;</span><br><span class="line">      // 省略getter/setter</span><br></pre></td></tr></table></figure>
<blockquote>
<p>在Spring Boot 中使用YAML虽然方便，但是YAML也有一些缺陷，例如无法使用@PropertySource注解加载YAML文件，如果项目中有这种需求，还是需要使用Properties格式的配置文件。</p>
</blockquote>
<h2 id="Profile"><a href="#Profile" class="headerlink" title="Profile"></a>Profile</h2><blockquote>
<p>开发者在开发项目发布之前，一般需要频繁的在开发环境、测试环境以及生产环境之间切换，这个时候大量的配置需要频繁更改，例如数据库配置、redis配置等。频繁修改会带来巨大的工作量，Spring对此提供了解决方案（@Profile注解），Spring Boot 则更进一步提供了更加简洁的解决方案，Spring Boot中约定的不同环境下配置文件名称规则为application-{profile}.properties，Profile占位符表示当前环境的名称，具体配置步骤如下：</p>
</blockquote>
<ul>
<li>创建配置文件：<br>先在resources目录下创建两个配置文件，application-dev.properties和application-prod.properties，分别表示开发环境中的配置和生产环境中的配置。</li>
</ul>
<p><strong>其中，application-dev.properties文件的内容如下</strong>：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">server.port=8080</span><br></pre></td></tr></table></figure>
<p><strong>application-prod.properties文件的内容如下</strong>：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">server.port=80</span><br></pre></td></tr></table></figure>
<ul>
<li>配置application.properties</li>
</ul>
<p><strong>然后在application.properties中进行配置:</strong></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">spring.profiles.active=dev</span><br></pre></td></tr></table></figure>
<blockquote>
<p>这个表示使用application.dev.properties配置文件启动项目，若将dev改为prod，则表示使用application-prod.properties启动项目。</p>
</blockquote>
<ul>
<li>在代码中配置<ul>
<li>对于第二步，我们可以在代码中添加配置来完成，在启动类的main方法上添加如下代码，可以替换第二步的配置：</li>
</ul>
</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">SpringApplicationBuilder builder = new</span><br><span class="line">SpringApplicationBuilder(Chapter013Application.class);</span><br><span class="line">builder.application().setAdditionalProfiles(<span class="string">"prod"</span>);</span><br><span class="line">builder.run(args);</span><br></pre></td></tr></table></figure>
<ul>
<li><p>项目启动时配置</p>
</li>
<li><p>对于第2步和第3步提到的两种配置方式，有可以在将项目打成jar包后启动时，在命令行动态指当前环境，示例命令如下：</p>
</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">java -jar chapter01-3-0.0.1-SNAPSHOP.jar --spring.profiles.active=prod</span><br></pre></td></tr></table></figure>
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2019/04/14/Spring-Boot-第二章-Web 容器配置/" rel="next" title="Spring Boot - 第二章 - Web 容器配置">
                <i class="fa fa-chevron-left"></i> Spring Boot - 第二章 - Web 容器配置
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image" src="/images/avatar.gif" alt="四 季">
            
              <p class="site-author-name" itemprop="name">四 季</p>
              <p class="site-description motion-element" itemprop="description">我的学习笔记站</p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/archives/">
              
                  <span class="site-state-item-count">15</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            

            

          </nav>

          

          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#第2章-Spring-Boot-基础配置"><span class="nav-number">1.</span> <span class="nav-text">第2章 Spring Boot 基础配置</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#Properties配置"><span class="nav-number">1.1.</span> <span class="nav-text">Properties配置</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#类型安全配置属性"><span class="nav-number">1.2.</span> <span class="nav-text">类型安全配置属性</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#代码解释："><span class="nav-number">1.2.1.</span> <span class="nav-text">代码解释：</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#YAML-配置"><span class="nav-number">1.3.</span> <span class="nav-text">YAML 配置</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Profile"><span class="nav-number">1.4.</span> <span class="nav-text">Profile</span></a></li></ol></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2019</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">四 季</span>

  
</div>


  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Pisces</a> v5.1.4</div>




        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.4"></script>



  
  


  <script type="text/javascript" src="/js/src/affix.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.1.4"></script>



  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  












  





  

  

  

  
  

  

  

  

</body>
</html>
